package com.gitee.base.modules.core.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 权限表
 *
 * @author yang
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("sys_permission")
public class SysPermission implements Serializable {
    private static final long serialVersionUID = 202011080056317057L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 角色ID
     */
    @TableField("role_id")
    private Integer roleId;
    /**
     * 权限
     */
    @TableField("permission")
    private String permission;
    /**
     * 创建时间
     */
    @TableField(value = "ctime",fill = FieldFill.INSERT)
    private LocalDateTime ctime;
    /**
     * 更新时间
     */
    @TableField(value = "utime",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime utime;

}
